package mylab.base.model.dto;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.List;


@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@ApiModel("分页数据")
public class PageData<T> extends DTO {
    @ApiModelProperty(value = "总计数据条数")
    private int total;
    @ApiModelProperty(value = "总分页数")
    private int pages;
    @ApiModelProperty(value = "当前页号，从1开始")
    private int current;
    @ApiModelProperty(value = "每页数据条数")
    private int size;
    @ApiModelProperty(value = "响应的数据列表")
    private List<T> items;
}

